// import router from 'project/admin/router'

// export function rouerFormData(routes) {
//   let temp = []
//   routes.forEach((route, idnex) => {
//     let {
//       id,
//       path,
//       component,
//       name,
//       meta,
//       redirect,
//       children
//     } = route
//     console.log(route,'cccccccccccccccc')
//     route.components = `project/admin/views/${route.component}`
//     route.component = r => require.ensure([], () => r(require(`project/admin/views/${route.component}`)), route.name)
//     // route.component = (resolve) => require(['project/admin/views/system'], resolve)
//     // console.log('xxxx',routes )
//     let _route = []

//     if (route.children && route.children.length) {
//       rouerFormData(route.children)
//     }
//   })

// }
